package org.example.myleet.p432;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        AllOne allOne = new AllOne();
        allOne.inc("hello");
        allOne.inc("hello");
        Assert.isTrue("hello".equals(allOne.getMaxKey()));
        Assert.isTrue("hello".equals(allOne.getMinKey()));
        allOne.inc("leet");
        Assert.isTrue("hello".equals(allOne.getMaxKey()));
        Assert.isTrue("leet".equals(allOne.getMinKey()));
        allOne.dec("leet");
        Assert.isTrue("hello".equals(allOne.getMaxKey()));
        Assert.isTrue("hello".equals(allOne.getMinKey()));
    }
}
